import {
  allMenuList,
  updateRole
} from "@/api/role.js";
export default {
  data() {
    return {}
  },
  computed: {},
  mounted() { },
  methods: {
    getAllMenuList() {
      return new Promise((resolve, reject) => {
        allMenuList().then((res) => {
          resolve(res.data)
        })
      })
    },
    getUpdateRole(params) {
      return new Promise((resolve, reject) => {
        updateRole(params).then((res) => {
          resolve()
        })
          .catch((res) => {
            reject(res)
          })
      })
    }
  },
  created() { },
}